
import com.pojo.SClass;

import com.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;


public class ClassTest {
    @Test
    public  void selectClassById(){
        SqlSession session = MyBatisUtils.getSession();
        SClass mapper = session.getMapper(SClass.class);
        SClass clas= mapper.selectClassById(2);
        System.out.println(clas);
        session.close();
    }

}
